package com.gagakuai.framework.xmlparser;

import org.camunda.bpm.engine.RepositoryService;
import org.camunda.bpm.model.bpmn.BpmnModelInstance;
import org.camunda.bpm.model.bpmn.instance.UserTask;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/*
 * @program: common-starters
 * @description:
 * @author: houhong
 * @create: 2022-12-13 23:26
 */
@Component
public class RepositoryServiceTest {

    @Autowired
    private RepositoryService repositoryService;

    public  void  parse(){

        BpmnModelInstance bpmnModelInstance = repositoryService.getBpmnModelInstance("");

        UserTask userTask = bpmnModelInstance.getModelElementById("");

    }
}